<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>订单详情 - 社交商城</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 基础样式 */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f7fa;
      color: #333;
      margin: 0;
      padding-bottom: 80px;
    }
    
    /* 顶部导航 */
    .top-nav {
      height: 50px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: center;
      padding: 0 15px;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0 auto;
    }
    
    .nav-btn {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      text-decoration: none;
    }
    
    .nav-right {
      display: flex;
    }
    
    /* 样式切换器 */
    .style-switcher {
      background-color: #fff;
      padding: 10px 15px;
      border-bottom: 1px solid #eee;
    }
    
    .style-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 5px;
    }
    
    .style-tabs::-webkit-scrollbar {
      display: none;
    }
    
    .style-tab {
      padding: 6px 14px;
      background-color: #f5f7fa;
      border-radius: 20px;
      font-size: 14px;
      white-space: nowrap;
      cursor: pointer;
    }
    
    .style-tab.active {
      background-color: #ff4d4f;
      color: white;
    }
    
    /* 通用订单详情页面样式 */
    .detail-page {
      display: none;
    }
    
    .detail-page.active {
      display: block;
    }
    
    /* 订单状态区域 */
    .order-status-bar {
      padding: 15px;
      background-color: #fff;
      margin-bottom: 10px;
    }
    
    .status-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 5px;
    }
    
    .status-desc {
      color: #666;
      margin-bottom: 10px;
      font-size: 14px;
    }
    
    .status-pending {
      color: #faad14;
    }
    
    .status-paid {
      color: #1890ff;
    }
    
    .status-shipped {
      color: #722ed1;
    }
    
    .status-completed {
      color: #52c41a;
    }
    
    .status-canceled {
      color: #8c8c8c;
    }
    
    /* 物流信息 */
    .shipping-info {
      background-color: #fff;
      padding: 15px;
      margin-bottom: 10px;
    }
    
    .section-title {
      font-weight: 600;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
    }
    
    .section-title i {
      margin-right: 5px;
      color: #ff4d4f;
    }
    
    .tracking-detail {
      font-size: 14px;
      line-height: 1.6;
    }
    
    .tracking-time {
      color: #999;
      font-size: 12px;
      margin-top: 5px;
    }
    
    /* 订单信息卡片 */
    .info-card {
      background-color: #fff;
      padding: 15px;
      margin-bottom: 10px;
    }
    
    .info-row {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px solid #f5f5f5;
      font-size: 14px;
    }
    
    .info-row:last-child {
      border-bottom: none;
    }
    
    .info-label {
      color: #666;
    }
    
    .info-value {
      text-align: right;
      flex: 1;
    }
    
    /* 商品列表 */
    .product-list {
      background-color: #fff;
      margin-bottom: 10px;
    }
    
    .product-item {
      display: flex;
      padding: 12px 15px;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .product-item:last-child {
      border-bottom: none;
    }
    
    .product-image {
      width: 70px;
      height: 70px;
      border-radius: 4px;
      overflow: hidden;
      margin-right: 10px;
      flex-shrink: 0;
    }
    
    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .product-info {
      flex: 1;
      min-width: 0;
    }
    
    .product-name {
      font-size: 15px;
      line-height: 1.3;
      margin-bottom: 5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .product-spec {
      font-size: 12px;
      color: #999;
      margin-bottom: 5px;
    }
    
    .product-price {
      color: #ff4d4f;
      font-weight: 500;
    }
    
    .product-quantity {
      color: #666;
      font-size: 14px;
    }
    
    /* 金额信息 */
    .amount-info {
      background-color: #fff;
      padding: 15px;
      margin-bottom: 10px;
    }
    
    .amount-row {
      display: flex;
      justify-content: space-between;
      padding: 5px 0;
      font-size: 14px;
    }
    
    .amount-total {
      display: flex;
      justify-content: space-between;
      padding: 10px 0 5px;
      margin-top: 5px;
      border-top: 1px solid #f5f5f5;
      font-weight: 600;
      font-size: 15px;
    }
    
    .amount-total .amount-value {
      color: #ff4d4f;
      font-size: 17px;
    }
    
    /* 操作按钮区域 */
    .action-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: #fff;
      border-top: 1px solid #eee;
      padding: 10px 15px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      z-index: 90;
    }
    
    .action-btn {
      padding: 8px 18px;
      border-radius: 4px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
    }
    
    .action-btn i {
      margin-right: 5px;
    }
    
    .btn-secondary {
      background-color: #f5f5f5;
      color: #666;
      border: 1px solid #eee;
    }
    
    .btn-primary {
      background-color: #ff4d4f;
      color: white;
      border: 1px solid #ff4d4f;
    }
    
    /* 样式1 - 标准布局 */
    .standard-detail .status-bar {
      background-color: #fff8f0;
      border-left: 4px solid #faad14;
      padding: 12px 15px;
      margin: 10px;
      border-radius: 4px;
    }
    
    .standard-detail .timeline {
      padding: 0 15px 15px;
      position: relative;
    }
    
    .standard-detail .timeline::before {
      content: '';
      position: absolute;
      left: 20px;
      top: 0;
      bottom: 0;
      width: 1px;
      background-color: #eee;
    }
    
    .standard-detail .timeline-item {
      position: relative;
      padding-left: 45px;
      padding-bottom: 15px;
    }
    
    .standard-detail .timeline-item:last-child {
      padding-bottom: 0;
    }
    
    .standard-detail .timeline-dot {
      position: absolute;
      left: 15px;
      top: 3px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: #faad14;
    }
    
    .standard-detail .timeline-item.active .timeline-dot {
      background-color: #ff4d4f;
      width: 14px;
      height: 14px;
      left: 14px;
    }
    
    .standard-detail .timeline-content {
      font-size: 14px;
    }
    
    .standard-detail .timeline-time {
      color: #999;
      font-size: 12px;
      margin-top: 3px;
    }
    
    /* 样式2 - 简约布局 */
    .simple-detail .status-bar {
      padding: 10px 15px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
    }
    
    .simple-detail .status-title {
      font-size: 16px;
      margin-bottom: 3px;
    }
    
    .simple-detail .status-desc {
      font-size: 13px;
      margin-bottom: 0;
    }
    
    .simple-detail .info-row {
      padding: 10px 0;
    }
    
    .simple-detail .product-name {
      font-size: 14px;
    }
    
    .simple-detail .action-btn {
      padding: 6px 15px;
      font-size: 14px;
    }
    
    /* 样式3 - 卡片布局 */
    .card-detail .order-status-bar {
      border-radius: 10px;
      margin: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .card-detail .info-card {
      border-radius: 10px;
      margin: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .card-detail .product-list {
      border-radius: 10px;
      margin: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      overflow: hidden;
    }
    
    .card-detail .amount-info {
      border-radius: 10px;
      margin: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .card-detail .tracking-card {
      background-color: #f9f0ff;
      border-radius: 10px;
      padding: 15px;
      margin: 10px;
    }
    
    .card-detail .tracking-title {
      color: #722ed1;
      font-weight: 600;
      margin-bottom: 8px;
    }
    
    /* 样式4 - 详情布局 */
    .full-detail .status-bar {
      background-color: #fff0f0;
      padding: 15px;
      margin-bottom: 15px;
    }
    
    .full-detail .status-badge {
      display: inline-block;
      padding: 3px 8px;
      border-radius: 4px;
      background-color: rgba(255,77,79,0.1);
      color: #ff4d4f;
      font-size: 12px;
      margin-left: 8px;
    }
    
    .full-detail .extra-info {
      background-color: #fff;
      padding: 15px;
      margin-bottom: 10px;
    }
    
    .full-detail .extra-title {
      font-size: 13px;
      color: #999;
      margin-bottom: 5px;
    }
    
    .full-detail .payment-method {
      display: inline-block;
      padding: 3px 8px;
      background-color: #f5f5f5;
      border-radius: 4px;
      font-size: 13px;
      margin-right: 10px;
    }
    
    /* 提示框 */
    .toast {
      position: fixed;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0,0,0,0.8);
      color: white;
      border-radius: 8px;
      padding: 10px 15px;
      font-size: 14px;
      z-index: 1000;
      display: none;
    }
  </style>
</head>
<body>
  <!-- 提示框 -->
  <div class="toast" id="toast"></div>
  
  <!-- 顶部导航 -->
  <nav class="top-nav">
    <a href="#" class="nav-btn" id="backBtn">
      <i class="fa fa-angle-left"></i>
    </a>
    <h1 class="nav-title">订单详情</h1>
    <div class="nav-right">
      <a href="#" class="nav-btn" id="shareBtn">
        <i class="fa fa-share-alt"></i>
      </a>
      <a href="#" class="nav-btn" id="moreBtn">
        <i class="fa fa-ellipsis-v"></i>
      </a>
    </div>
  </nav>
  
  <!-- 样式切换器 -->
  <div class="style-switcher">
    <div class="style-tabs">
      <div class="style-tab active" data-style="standard">标准布局</div>
      <div class="style-tab" data-style="simple">简约布局</div>
      <div class="style-tab" data-style="card">卡片布局</div>
      <div class="style-tab" data-style="full">详情布局</div>
    </div>
  </div>
  
  <!-- 样式1 - 标准布局 -->
  <div class="detail-page active standard-detail" id="standard">
    <!-- 订单状态 -->
    <div class="status-bar">
      <div class="status-title status-shipped">已发货</div>
      <div class="status-desc">您的订单已由顺丰速运发出，正在派送中</div>
    </div>
    
    <!-- 物流时间线 -->
    <div class="shipping-info">
      <div class="section-title"><i class="fa fa-truck"></i> 物流信息</div>
      <div class="timeline">
        <div class="timeline-item active">
          <div class="timeline-dot"></div>
          <div class="timeline-content">【北京市】快递员 李师傅(138****5678)正在为您派送，请保持电话畅通</div>
          <div class="timeline-time">今天 09:30</div>
        </div>
        <div class="timeline-item">
          <div class="timeline-dot"></div>
          <div class="timeline-content">【北京市】快件已到达[北京朝阳派送点]</div>
          <div class="timeline-time">今天 08:15</div>
        </div>
        <div class="timeline-item">
          <div class="timeline-dot"></div>
          <div class="timeline-content">【上海市】快件已发出，正在运往[北京]</div>
          <div class="timeline-time">昨天 19:45</div>
        </div>
        <div class="timeline-item">
          <div class="timeline-dot"></div>
          <div class="timeline-content">【上海市】快件已由[上海仓库]发出</div>
          <div class="timeline-time">昨天 16:20</div>
        </div>
      </div>
    </div>
    
    <!-- 订单信息 -->
    <div class="info-card">
      <div class="section-title"><i class="fa fa-info-circle"></i> 订单信息</div>
      <div class="info-row">
        <div class="info-label">订单编号</div>
        <div class="info-value">2023102787654321</div>
      </div>
      <div class="info-row">
        <div class="info-label">下单时间</div>
        <div class="info-value">2023-10-27 09:15:30</div>
      </div>
      <div class="info-row">
        <div class="info-label">支付方式</div>
        <div class="info-value">微信支付</div>
      </div>
      <div class="info-row">
        <div class="info-label">支付时间</div>
        <div class="info-value">2023-10-27 09:18:45</div>
      </div>
    </div>
    
    <!-- 收货信息 -->
    <div class="info-card">
      <div class="section-title"><i class="fa fa-map-marker"></i> 收货信息</div>
      <div class="info-row">
        <div class="info-label">收货人</div>
        <div class="info-value">张先生 138****6789</div>
      </div>
      <div class="info-row">
        <div class="info-label">收货地址</div>
        <div class="info-value">北京市朝阳区XX街道XX小区X号楼X单元XXX 邮编:100000</div>
      </div>
    </div>
    
    <!-- 商品列表 -->
    <div class="product-list">
      <div class="section-title" style="padding:0 15px;margin:0;line-height:50px;border-bottom:1px solid #f5f5f5;">
        <i class="fa fa-shopping-bag"></i> 商品信息
      </div>
      <div class="product-item">
        <div class="product-image">
          <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
        </div>
        <div class="product-info">
          <div class="product-name">无线蓝牙耳机 运动跑步降噪耳机 长续航</div>
          <div class="product-spec">颜色：黑色</div>
          <div style="display:flex;justify-content:space-between;align-items:center;margin-top:5px;">
            <div class="product-price">¥199</div>
            <div class="product-quantity">x1</div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 金额信息 -->
    <div class="amount-info">
      <div class="section-title"><i class="fa fa-credit-card"></i> 金额信息</div>
      <div class="amount-row">
        <div>商品总价</div>
        <div>¥199.00</div>
      </div>
      <div class="amount-row">
        <div>运费</div>
        <div>¥0.00</div>
      </div>
      <div class="amount-row">
        <div>优惠券</div>
        <div>-¥30.00</div>
      </div>
      <div class="amount-total">
        <div>实付款</div>
        <div class="amount-value">¥169.00</div>
      </div>
    </div>
    
    <!-- 操作按钮 -->
    <div class="action-bar">
      <button class="action-btn btn-secondary" onclick="showToast('已联系客服')">
        <i class="fa fa-comments"></i> 联系客服
      </button>
      <button class="action-btn btn-primary" onclick="showToast('确认收货成功')">
        <i class="fa fa-check"></i> 确认收货
      </button>
    </div>
  </div>
  
  <!-- 样式2 - 简约布局 -->
  <div class="detail-page simple-detail" id="simple">
    <!-- 订单状态 -->
    <div class="status-bar">
      <div class="status-title status-shipped">已发货</div>
      <div class="status-desc">顺丰速运 789456123000 | 正在派送中</div>
    </div>
    
    <!-- 订单信息 -->
    <div class="info-card">
      <div class="info-row">
        <div class="info-label">订单编号</div>
        <div class="info-value">2023102787654321</div>
      </div>
      <div class="info-row">
        <div class="info-label">下单时间</div>
        <div class="info-value">2023-10-27 09:15</div>
      </div>
      <div class="info-row">
        <div class="info-label">支付方式</div>
        <div class="info-value">微信支付</div>
      </div>
    </div>
    
    <!-- 收货信息 -->
    <div class="info-card">
      <div class="info-row">
        <div class="info-label">收货人</div>
        <div class="info-value">张先生 138****6789</div>
      </div>
      <div class="info-row">
        <div class="info-label">收货地址</div>
        <div class="info-value">北京市朝阳区XX街道XX小区</div>
      </div>
    </div>
    
    <!-- 商品列表 -->
    <div class="product-list">
      <div class="product-item">
        <div class="product-image">
          <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
        </div>
        <div class="product-info">
          <div class="product-name">无线蓝牙耳机 运动跑步降噪</div>
          <div class="product-spec">黑色</div>
          <div style="display:flex;justify-content:space-between;align-items:center;margin-top:5px;">
            <div class="product-price">¥199</div>
            <div class="product-quantity">x1</div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 金额信息 -->
    <div class="amount-info">
      <div class="amount-row">
        <div>商品总价</div>
        <div>¥199</div>
      </div>
      <div class="amount-row">
        <div>优惠券</div>
        <div>-¥30</div>
      </div>
      <div class="amount-total">
        <div>实付款</div>
        <div class="amount-value">¥169</div>
      </div>
    </div>
    
    <!-- 操作按钮 -->
    <div class="action-bar">
      <button class="action-btn btn-secondary" onclick="showToast('已联系客服')">客服</button>
      <button class="action-btn btn-primary" onclick="showToast('确认收货成功')">确认收货</button>
    </div>
  </div>
  
  <!-- 样式3 - 卡片布局 -->
  <div class="detail-page card-detail" id="card">
    <!-- 订单状态 -->
    <div class="order-status-bar">
      <div class="status-title status-shipped">已发货</div>
      <div class="status-desc">您的订单已由顺丰速运发出，正在派送中</div>
    </div>
    
    <!-- 物流信息 -->
    <div class="tracking-card">
      <div class="tracking-title">顺丰速运 789456123000</div>
      <div class="tracking-detail">【北京市】快递员 李师傅(138****5678)正在为您派送，请保持电话畅通</div>
      <div class="tracking-time">今天 09:30</div>
    </div>
    
    <!-- 订单信息 -->
    <div class="info-card">
      <div class="section-title"><i class="fa fa-info-circle"></i> 订单信息</div>
      <div class="info-row">
        <div class="info-label">订单编号</div>
        <div class="info-value">2023102787654321</div>
      </div>
      <div class="info-row">
        <div class="info-label">下单时间</div>
        <div class="info-value">2023-10-27 09:15:30</div>
      </div>
      <div class="info-row">
        <div class="info-label">支付方式</div>
        <div class="info-value">微信支付</div>
      </div>
    </div>
    
    <!-- 收货信息 -->
    <div class="info-card">
      <div class="section-title"><i class="fa fa-map-marker"></i> 收货信息</div>
      <div class="info-row">
        <div class="info-label">收货人</div>
        <div class="info-value">张先生 138****6789</div>
      </div>
      <div class="info-row">
        <div class="info-label">收货地址</div>
        <div class="info-value">北京市朝阳区XX街道XX小区X号楼X单元XXX</div>
      </div>
    </div>
    
    <!-- 商品列表 -->
    <div class="product-list">
      <div class="product-item">
        <div class="product-image">
          <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
        </div>
        <div class="product-info">
          <div class="product-name">无线蓝牙耳机 运动跑步降噪耳机 长续航</div>
          <div class="product-spec">颜色：黑色</div>
          <div style="display:flex;justify-content:space-between;align-items:center;margin-top:5px;">
            <div class="product-price">¥199</div>
            <div class="product-quantity">x1</div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 金额信息 -->
    <div class="amount-info">
      <div class="amount-row">
        <div>商品总价</div>
        <div>¥199.00</div>
      </div>
      <div class="amount-row">
        <div>运费</div>
        <div>¥0.00</div>
      </div>
      <div class="amount-row">
        <div>优惠券</div>
        <div>-¥30.00</div>
      </div>
      <div class="amount-total">
        <div>实付款</div>
        <div class="amount-value">¥169.00</div>
      </div>
    </div>
    
    <!-- 操作按钮 -->
    <div class="action-bar">
      <button class="action-btn btn-secondary" onclick="showToast('已联系客服')">联系客服</button>
      <button class="action-btn btn-primary" onclick="showToast('确认收货成功')">确认收货</button>
    </div>
  </div>
  
  <!-- 样式4 - 详情布局 -->
  <div class="detail-page full-detail" id="full">
    <!-- 订单状态 -->
    <div class="status-bar">
      <div class="status-title status-shipped">
        已发货 <span class="status-badge">正在派送</span>
      </div>
      <div class="status-desc">您的订单已由顺丰速运发出，正在派送中，预计今天送达</div>
    </div>
    
    <!-- 物流信息 -->
    <div class="shipping-info">
      <div class="section-title"><i class="fa fa-truck"></i> 物流信息</div>
      <div style="font-weight:500;margin-bottom:8px;">顺丰速运 789456123000</div>
      <div class="tracking-detail">【北京市】快递员 李师傅(138****5678)正在为您派送，请保持电话畅通</div>
      <div class="tracking-time">今天 09:30</div>
      <div style="margin-top:10px;padding-top:10px;border-top:1px dashed #eee;">
        <div class="tracking-detail">【北京市】快件已到达[北京朝阳派送点]</div>
        <div class="tracking-time">今天 08:15</div>
      </div>
      <div style="margin-top:10px;padding-top:10px;border-top:1px dashed #eee;">
        <div class="tracking-detail">【上海市】快件已发出，正在运往[北京]</div>
        <div class="tracking-time">昨天 19:45</div>
      </div>
    </div>
    
    <!-- 订单信息 -->
    <div class="info-card">
      <div class="section-title"><i class="fa fa-info-circle"></i> 订单信息</div>
      <div class="info-row">
        <div class="info-label">订单编号</div>
        <div class="info-value">2023102787654321</div>
      </div>
      <div class="info-row">
        <div class="info-label">下单时间</div>
        <div class="info-value">2023-10-27 09:15:30</div>
      </div>
      <div class="info-row">
        <div class="info-label">支付方式</div>
        <div class="info-value">微信支付</div>
      </div>
      <div class="info-row">
        <div class="info-label">支付时间</div>
        <div class="info-value">2023-10-27 09:18:45</div>
      </div>
      <div class="info-row">
        <div class="info-label">发货时间</div>
        <div class="info-value">2023-10-27 14:30:22</div>
      </div>
    </div>
    
    <!-- 收货信息 -->
    <div class="info-card">
      <div class="section-title"><i class="fa fa-map-marker"></i> 收货信息</div>
      <div class="info-row">
        <div class="info-label">收货人</div>
        <div class="info-value">张先生 138****6789</div>
      </div>
      <div class="info-row">
        <div class="info-label">收货地址</div>
        <div class="info-value">北京市朝阳区XX街道XX小区X号楼X单元XXX 邮编:100000</div>
      </div>
      <div class="info-row">
        <div class="info-label">配送方式</div>
        <div class="info-value">顺丰速运(次日达)</div>
      </div>
    </div>
    
    <!-- 商品列表 -->
    <div class="product-list">
      <div class="section-title" style="padding:0 15px;margin:0;line-height:50px;border-bottom:1px solid #f5f5f5;">
        <i class="fa fa-shopping-bag"></i> 商品信息
      </div>
      <div class="product-item">
        <div class="product-image">
          <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
        </div>
        <div class="product-info">
          <div class="product-name">无线蓝牙耳机 运动跑步降噪耳机 长续航 高清通话</div>
          <div class="product-spec">颜色：黑色 | 版本：标准版</div>
          <div style="display:flex;justify-content:space-between;align-items:center;margin-top:5px;">
            <div class="product-price">¥199 <span style="text-decoration:line-through;color:#999;font-size:12px;font-weight:normal;">¥299</span></div>
            <div class="product-quantity">x1</div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 金额信息 -->
    <div class="amount-info">
      <div class="section-title"><i class="fa fa-credit-card"></i> 金额信息</div>
      <div class="amount-row">
        <div>商品总价</div>
        <div>¥199.00</div>
      </div>
      <div class="amount-row">
        <div>运费</div>
        <div>¥0.00</div>
      </div>
      <div class="amount-row">
        <div>店铺优惠</div>
        <div>-¥10.00</div>
      </div>
      <div class="amount-row">
        <div>平台优惠券</div>
        <div>-¥20.00</div>
      </div>
      <div class="amount-row">
        <div>实付金额</div>
        <div class="amount-value">¥169.00</div>
      </div>
    </div>
    
    <!-- 额外信息 -->
    <div class="extra-info">
      <div class="extra-title">服务保障</div>
      <div>
        <span class="payment-method">7天无理由退货</span>
        <span class="payment-method">两年质保</span>
        <span class="payment-method">正品保障</span>
      </div>
    </div>
    
    <!-- 操作按钮 -->
    <div class="action-bar">
      <button class="action-btn btn-secondary" onclick="showToast('已复制订单号')">
        <i class="fa fa-copy"></i> 复制订单号
      </button>
      <button class="action-btn btn-secondary" onclick="showToast('已联系客服')">
        <i class="fa fa-comments"></i> 联系客服
      </button>
      <button class="action-btn btn-primary" onclick="showToast('确认收货成功')">
        <i class="fa fa-check"></i> 确认收货
      </button>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 获取元素
    const styleTabs = document.querySelectorAll('.style-tab');
    const detailPages = document.querySelectorAll('.detail-page');
    const backBtn = document.getElementById('backBtn');
    const shareBtn = document.getElementById('shareBtn');
    const moreBtn = document.getElementById('moreBtn');
    const toast = document.getElementById('toast');
    
    // 样式切换
    styleTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        // 移除所有激活状态
        styleTabs.forEach(t => t.classList.remove('active'));
        detailPages.forEach(page => page.classList.remove('active'));
        
        // 设置当前激活状态
        this.classList.add('active');
        const style = this.getAttribute('data-style');
        document.getElementById(style).classList.add('active');
        
        showToast(`已切换到${this.textContent}`);
      });
    });
    
    // 返回按钮
    backBtn.addEventListener('click', function() {
      showToast('返回订单列表');
    });
    
    // 分享按钮
    shareBtn.addEventListener('click', function() {
      showToast('分享订单');
    });
    
    // 更多按钮
    moreBtn.addEventListener('click', function() {
      showToast('更多操作');
    });
    
    // 显示提示
    function showToast(message) {
      toast.textContent = message;
      toast.style.display = 'block';
      
      setTimeout(() => {
        toast.style.opacity = '0';
        setTimeout(() => {
          toast.style.display = 'none';
          toast.style.opacity = '1';
        }, 300);
      }, 2000);
    }
  </script>
</body>
</html>
